import traffic from './mock/traffic';
import { createPromise } from './util';
import Mock from 'mockjs';
export const history = (data) => {
  return createPromise(Mock.mock(traffic['history']));
}
/** 交通事件类型统计车辆维度 */
export const typeForCar = (data) => {
  return createPromise(Mock.mock(traffic['typeForCar']));
}

/** 交通事件类型统计时间维度 */
export const typeForTime = (data) => {
  return createPromise(Mock.mock(traffic['typeForTime']));
}
/** 交通事件区域分布 */
export const area = (data) => {
  return createPromise(Mock.mock(traffic['area']));
}
/** 驾驶车型统计  */
export const carTypeStatic = (data) => {
  return createPromise(Mock.mock(traffic['carTypeStatic']));
}
/** 天气状况统计 */
export const weather = (data) => {
  return createPromise(Mock.mock(traffic['weather']));
}
/** 事件多发道路 */
export const road = (data) => {
  return createPromise(Mock.mock(traffic['road']));
}
/** 事件多发路口 */
export const junction = (data) => {
  return createPromise(Mock.mock(traffic['junction']));
}
